package cn.topevery.garden.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.topevery.garden.entity.po.ProcessLogFile;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 过程日志信息表 视图
 *
 * @author code-generate
 * @date 2022-02-15
 */
@Data
@ApiModel(value = "ProcessLog 视图", description = "过程日志信息表 视图")
public class ProcessLogVO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @Excel(name = "项目id", orderNum = "0")
    private Integer projectId;

    @ApiModelProperty(value = "项目名称")
    @Excel(name = "项目名称", orderNum = "0")
    private String name;

    /**
     * 时间
     */
    @ApiModelProperty(value = "时间")
    @Excel(name = "时间", orderNum = "0")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @Excel(name = "描述", orderNum = "0")
    private String desc;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注", orderNum = "0")
    private String remark;

    /**
     * 附件
     */
    @ApiModelProperty(value = "附件url")
    @Excel(name = "附件", orderNum = "0")
    private String fileUrl;

    /**
     * 记录人
     */
    @ApiModelProperty(value = "记录人")
    @Excel(name = "记录人", orderNum = "0")
    private String noteTaker;

    @ApiModelProperty(value = "附件")
    private List<ProcessLogFile> fileList;
}
